package com.ph.irp.base.bom.dao;

import java.util.List;

import com.ph.irp.model.PBaseBombill;

public interface BOMBillDAO {
	public List<PBaseBombill> getBOMBillByBOMGroupID(String bomGroupID)
			throws Throwable;

	public List<PBaseBombill> getBOMBillByStateAndCode(String bomBillCode,
			String state, String auditState, String bomGroupID)
			throws Throwable;

	public int getAuditStateByBOMBillID(String useBomBillID) throws Throwable;

	public int getStateByBOMBillID(String useBomBillID) throws Throwable;

	public void setBomBillUsed(String useBomBillID) throws Throwable;

	public void setBomBillAntiUsed(String useBomBillID) throws Throwable;

	public void setBomBillAudited(String useBomBillID,String auditer,String auditDate) throws Throwable;

	public void setBomBillAntiAudited(String useBomBillID) throws Throwable;

	public String getNewestBomBillCode() throws Throwable;

	public void addBOMBill(PBaseBombill bomBill) throws Throwable;

	public int getBOMBillIdByBOMBillCode(String code) throws Throwable;

	public PBaseBombill getBOMBillByBOMBillID(String bomBillID)
			throws Throwable;

	public void editBOMBill(PBaseBombill bomBill) throws Throwable;
	
	public void deleteBOMBill(String deleteBOMBillIDs) throws Throwable;
	
	public boolean isAuditedBOMBill(String bomBillID)throws Throwable;
	
}
